import axios from "axios"
import { APP_CONFIG } from "../config"

const request = axios.create({
    baseURL: APP_CONFIG.STATIC_HOST + '/api/reception/api/v1/'
})

request.interceptors.request.use(config => {
    // console.log(config);
    return config
}, error => {
    console.log('请求配置错误' + error)
})

request.interceptors.response.use(response => {
    return response
}, error => {
    console.log('请求响应错误' + error)
})

export default request